package com.qidian.mespro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.WorkflowProduct;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public interface WorkflowProductService {

    Result<PageInfo<WorkflowProduct>> selectByWorkflowId(Long workflowId,int pageNum, int pageSize);

    Result<WorkflowProduct> addWorkflowProduct(WorkflowProduct workflowProduct);

    Result<WorkflowProduct> selectWorkflowProductById(Long id);

    Result updateWorkflowProduct(WorkflowProduct workflowProduct);

    Result deleteWorkflowProductById(Long id);

    Result batchDelete(Long [] ids);
}
